package com.ruoyi.activities.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.activities.mapper.ActivitiesMapper;
import com.ruoyi.activities.domain.Activities;
import com.ruoyi.activities.service.IActivitiesService;

/**
 * 活动信息Service业务层处理
 * 
 * @author anyunyi
 * @date 2025-05-29
 */
@Service
public class ActivitiesServiceImpl implements IActivitiesService 
{
    @Autowired
    private ActivitiesMapper activitiesMapper;

    /**
     * 查询活动信息
     * 
     * @param id 活动信息主键
     * @return 活动信息
     */
    @Override
    public Activities selectActivitiesById(Long id)
    {
        return activitiesMapper.selectActivitiesById(id);
    }

    /**
     * 查询活动信息列表
     * 
     * @param activities 活动信息
     * @return 活动信息
     */
    @Override
    public List<Activities> selectActivitiesList(Activities activities)
    {
        return activitiesMapper.selectActivitiesList(activities);
    }

    /**
     * 新增活动信息
     * 
     * @param activities 活动信息
     * @return 结果
     */
    @Override
    public int insertActivities(Activities activities)
    {
        return activitiesMapper.insertActivities(activities);
    }

    /**
     * 修改活动信息
     * 
     * @param activities 活动信息
     * @return 结果
     */
    @Override
    public int updateActivities(Activities activities)
    {
        return activitiesMapper.updateActivities(activities);
    }

    /**
     * 批量删除活动信息
     * 
     * @param ids 需要删除的活动信息主键
     * @return 结果
     */
    @Override
    public int deleteActivitiesByIds(Long[] ids)
    {
        return activitiesMapper.deleteActivitiesByIds(ids);
    }

    /**
     * 删除活动信息信息
     * 
     * @param id 活动信息主键
     * @return 结果
     */
    @Override
    public int deleteActivitiesById(Long id)
    {
        return activitiesMapper.deleteActivitiesById(id);
    }
}
